/* 空调控温页面样式 - 基于气体监测仪风格 */

html {
    font-size: 100px;
}

body {
    height: 100vh;
    background: linear-gradient(180deg, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%);
    overflow: hidden;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--theme-text-color);
}

main {
    padding: 0.2rem;
    height: calc(100vh - 0.6rem);
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* 公共头部样式优化 */
.common-header {
    height: 0.6rem;
    background-color: #0A3A7E;
    color: white;
}

/* 卡片布局 */
.air-conditioner-card {
    width: 49%;
    margin-bottom: 0.2rem;
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-card-border);
    border-radius: 0.1rem;
    overflow: hidden;
    box-shadow: var(--theme-card-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 卡片头部样式 */
.card-header {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--theme-text-color);
    display: flex;
    justify-content: space-between;
    padding: 0.15rem 0.2rem;
    font-size: 0.18rem;
    align-items: center;
    border-bottom: 1px solid var(--theme-card-border);
}

.device-name {
    font-weight: 500;
    color: var(--theme-text-color);
}

.device-status {
    font-weight: normal;
    color: var(--theme-text-color);
}

.status-normal {
    color: #4CAF50;
}

.status-warning {
    color: #FFC107;
}

.status-error {
    color: #F44336;
}

/* 卡片内容区域 */
.card-content {
    padding: 0.2rem;
}

/* 运行模式选择部分 */
.mode-section {
    margin-bottom: 0.2rem;
}

.mode-row {
    display: flex;
    justify-content: space-between;
    padding: 0.12rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--theme-text-color);
}

.mode-row:last-child {
    border-bottom: none;
}

.mode-name {
    display: flex;
    align-items: center;
    color: var(--theme-text-color);
}

.mode-name .formula {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.14rem;
    margin-left: 0.05rem;
}

.mode-value {
    font-size: 0.24rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    color: var(--theme-text-color);
}

.mode-value .unit {
    font-size: 0.14rem;
    margin-left: 0.05rem;
    opacity: 0.8;
    font-weight: normal;
    color: var(--theme-text-color);
}

/* 温度控制部分 */
.temperature-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.2rem;
}

.temperature-info {
    display: flex;
    flex-direction: column;
}

.temperature-label {
    font-size: 0.16rem;
    color: var(--theme-text-color);
    margin-bottom: 0.05rem;
}

.temperature-value {
    font-size: 0.3rem;
    font-weight: bold;
    color: var(--theme-text-color);
}

.target-temp-input {
  width: 60px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin: 0 5px;
  -moz-appearance: textfield;
}

.target-temp-input::-webkit-outer-spin-button,
.target-temp-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.temp-adjust-btn {
  width: 25px;
  height: 25px;
  background-color: #eee;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 20px;
}

.temp-adjust-btn:hover {
  background-color: #ddd;
}

.temperature-unit {
    font-size: 0.16rem;
    margin-left: 0.05rem;
    opacity: 0.8;
    color: var(--theme-text-color);
}

/* 控制按钮 */
.control-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.2rem;
}

.control-button {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--theme-text-color);
    border: 1px solid var(--theme-card-border);
    border-radius: 0.05rem;
    padding: 0.08rem 0.15rem;
    margin-left: 0.1rem;
    font-size: 0.14rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.control-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.control-button.active {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: #FFFFFF;
}

/* 自动刷新指示器 */
.auto-refresh {
    position: fixed;
    bottom: 0.2rem;
    right: 0.2rem;
    background-color: var(--theme-card-bg);
    border: 1px solid var(--theme-card-border);
    color: var(--theme-text-color);
    padding: 0.08rem 0.15rem;
    border-radius: 0.05rem;
    font-size: 0.12rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Toast提示样式 */
/* .toast-container {
    position: fixed;
    top: 0.7rem;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
} */

.toast {
    padding: 0.12rem 0.25rem;
    border-radius: 0.05rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    margin-bottom: 0.1rem;
    font-size: 0.14rem;
    max-width: 80%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.toast.success {
    background-color: rgba(76, 175, 80, 0.9);
}

.toast.info {
    background-color: rgba(33, 150, 243, 0.9);
}

.toast.warning {
    background-color: rgba(255, 152, 0, 0.9);
}

.toast.error {
    background-color: rgba(244, 67, 54, 0.9);
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    html {
        font-size: 625%;
    }
    
    .air-conditioner-card {
        width: 100%;
    }
}

/* 确保在大屏上字体大小合适 */
@media screen and (min-width: 1200px) {
    html {
        font-size: 100px;
    }
}